package com.cfilmcloud.learn.mockdemo;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * Created by edz on 2017/7/26.
 */
@Service
public class AaaService {

    @Autowired
    private BbbService bbbService;

    @Autowired
    private CccService cccService;

    public String doAAA() {
        System.err.println("AAA运行");
        bbbService.doBBB();
        cccService.doCCC();
        return "AAA";
    }

    public String doSome() {
        System.err.println("AAA运行");
        if ("BBB".equals(bbbService.doBBB())) {
            System.err.println("bbbService.doBBB() 返回了 BBB 字符串");
        }
        if ("CCC".equals(cccService.doCCC())) {
            System.err.println("cccService.doCCC() 返回了 CCC 字符串");
        }
        return "AAA";
    }
}
